﻿using System.Linq;
using FacialClub.Models.Entities;

namespace FacialClub.Models.Interfaces
{
    /// <summary>
    /// Feedback Repository Interface
    /// </summary>
    public interface IFeedbackRepository
    {
        /// <summary>
        /// Get All Feedback
        /// </summary>
        /// <returns></returns>
        IQueryable<Feedback> FindAllFeedback();

        /// <summary>
        /// Get Feedback By Name
        /// </summary>
        /// <param name="strQuery"></param>
        /// <returns></returns>
        IQueryable<Feedback> FindFeedbackByName(string strQuery);

        /// <summary>
        /// Get Feedback By Id
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Feedback GetFeedbackById(int id);

        /// <summary>
        /// Add Feedback in the Database
        /// </summary>
        /// <param name="feedback"></param>
        void Add(Feedback feedback);

        /// <summary>
        /// Delete Feedback from the Database
        /// </summary>
        /// <param name="feedback"></param>
        void Delete(Feedback feedback);

        /// <summary>
        /// Save record in the database
        /// </summary>
        void Save();
    }
}